/*
 * @Date: 2021-01-04 13:55:46
 * @LastEditTime: 2021-06-16 14:07:30
 * @LastEditors: Neko
 */
import request from '@/api/request.js'

// 获取微页面模块信息
export async function getPageModelList(params) {
	return request('/microPage/getPageModelList', params)
}

// 获取热词模块信息
export async function getKeywordInfo(params) {
	return request('/microPage/getKeywordInfo', params)
}

// 获取广告模块信息
export async function getAdvertInfo(params) {
	return request('/microPage/getAdvertInfo', params)
}

// 获取活动模块信息
export async function getActivityInfo(params) {
	return request('/microPage/getActivityInfo', params)
}

// 获取辅助空白模块信息
export async function getBlankInfo(params) {
	return request('/microPage/getBlankInfo', params)
}

// 获取商品分组模块信息
export async function getGoodsGroupInfo(params) {
	return request('/microPage/getGoodsGroupInfo', params)
}

// 获取商品模块信息
export async function getGoodsInfo(params) {
	return request('/microPage/getGoodsInfo', params)
}

// 获取导航模块信息
export async function getNavInfo(params) {
	return request('/microPage/getNavInfo', params)
}

// 获取公告模块信息
export async function getNoticeInfo(params) {
	return request('/microPage/getNoticeInfo', params)
}

// 获取分隔符模块信息
export async function getSeparatorInfo(params) {
	return request('/microPage/getSeparatorInfo', params)
}

// 获取商家模块信息
export async function getStoreInfo(params) {
	return request('/microPage/getStoreInfo', params)
}

// 获取标题文本模块信息
export async function getTitleInfo(params) {
	return request('/microPage/getTitleInfo', params)
}

// 热搜
export async function getHotSearch(params) {
	return request('/goods/mobile/getHotSearch', params)
}

// 获取搜索商品数据
export async function getGoodsPagerInfo(params) {
	return request('/quickPurchase/getGoodsPagerInfo', params)
}

// 版本信息
export async function version(params) {
	return request('/appInfo/compareVersion', params)
}

export function getCategoryList() {
	return request('/microPage/getIndustryTypes')
}

export const getBrandInfo = params => (
	request('/microPage/getBrandInfo', params)
)

// 站点定位
export async function sitePositioning(params) {
	return request('/site/manage/sitePositioning', params, 'post')
}

// 设置常用站点
export async function setCommonUseSite(params) {
	return request('/user/setCommonUseSite', params, 'post')
}

// 列表查询站点
export async function siteList(params) {
	return request('/site/manage/list', params, 'post')
}

export async function getSiteList(params) {
	return request('/site/manage/getSiteList', params, 'post')
}

export async function getSiteByDomainPrefix(params) {
	return request('/goods/getSiteByDomainPrefix', params)
}

export async function getSeo(params) {
	return request('/userSeoConfiguration/merchantSeo?domainPrefix=europe', params)
}

// 微信分享
export async function wechatgetJsApiTicket(params) {
	return request('/wechat/getJsApiTicket', params)
}

// 公告消息
export async function announcement(params) {
	return request('/news/announcement', params)
}
export const getFilterDataAction = (params) => (
	request('/microPage/getFilterInfo', params)
)

export const getScreenDataAction = (params) => (
	request('/microPage/getScreenInfo', params)
)

export const getRelatedKeywordAction = params => (
	request('/brand/getKey', params)
)

export const getWechatShareImageAction = params => (
	request('/wechat/ossPicProcessing', params)
)